package com.biz.primus.support.localhost.spring;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.env.EnvironmentPostProcessor;
import org.springframework.core.env.ConfigurableEnvironment;

/**
 *
 * 加载自定义属性源
 *
 * @author yanweijin
 * @date 2017/11/26
 */
public class PrimusPropertySourceConfiguration implements EnvironmentPostProcessor {
	@Override
	public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) {
		environment.getPropertySources().addLast(new LocalhostPropertySource());
	}
}
